package com.zzj.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zzj.entity.CommentReply;
import com.zzj.mapper.CommentReplyMapper;
import com.zzj.service.ICommentReplyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 评论回复 服务实现类
 * </p>
 *
 * @author zzj
 * @since 2023-05-13
 */
@Service
public class CommentReplyServiceImpl extends ServiceImpl<CommentReplyMapper, CommentReply> implements ICommentReplyService {

    @Override
    public CommentReply find(int id) {
        return this.getOne(Wrappers.<CommentReply>lambdaQuery().eq(CommentReply::getId,id));
    }
}
